<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%
String perCodeMenu = request.getParameter("percode");
com.muk.meis.model.bean.UserProfile userPassLoginMenu =  (com.muk.meis.model.bean.UserProfile)session.getAttribute(com.muk.meis.MEISConstance.USER_PASS_LOGIN);
%>	
       <div style="position:relative;background-image: url('../image/header_background.gif'); width:1000px; height:140px; color: #333;font-size:25px;">
          <div style="width:800px; padding-left:50px;padding-top:50px;cursor: pointer;" 
          onclick="javascript:window.open('../','_parent','')">
          <span class="mesi_header_m">M</span>ukdahan education information system
          </div>
	      <div style="position:relative; padding-top:15px;padding-left:50px;font-size: 20px;">
	               <span>โรงเรียน</span>
	               <span style="padding-left: 1px;"><%=com.muk.meis.model.service.SchoolService.getSchoolNameByPerCode(perCodeMenu)%></span>          
	      </div> 

       </div>
                
        <table style="position: relative;padding-left: 100px;">
        <tr>
        	<td>
<%
if(userPassLoginMenu != null){
%>
   <div align="right" style="position:relative;padding-top: 20px;">สวัสดีคุณ &nbsp;&nbsp;<%=userPassLoginMenu.getUserName()%></div> 
<%} %>	      	
        	</td>
        	<td>
		<div style="position:relative;background-repeat:no-repeat;padding-top:20px;padding-left:10px;">
		<ul id="nav" class="dropdown dropdown-horizontal">
			<!-- 
			<li><a href="../">หน้าหลัก</a></li>
			 -->
			<% if(com.muk.meis.MEISConstance.ADMIN_ROLE.equals(userPassLoginMenu.getRole())) {%>
				<li style="cursor: pointer;"><img src="../image/home_icon.jpg" width="14px;" onclick="<%="javascript:window.open('"+request.getContextPath()+"','_parent','')"%>"/></li>
			<%} else { %>
				<li style="cursor: pointer;"><img src="../image/home_icon.jpg" width="14px;" onclick="<%="javascript:window.open('"+request.getContextPath()+"/school/listnews.jsp?percode="+perCodeMenu+"','_parent','')"%>"/></li>
			<%} %> 
			<li class="dir">เกี่ยวกับโครงการ
				<ul>
					<li>โครงการ
						<ul>
							<li>ความเป็นมา</li>
							<li>วัตถุประสงค์</li>
						</ul>
					</li>
					<li>คณะผู้จัดทำ</li>
					<li>ติดต่อเรา</li>
				</ul>
			</li>			
			<li><a href="../school.jsp">ตามโรงเรียน</a></li>
			<!-- 
			<li class="dir">Admin Console
				<ul>
					<li><a href="./">User Management</a>
						<ul>
							<li><a href="create.jsp">Add</a></li>
							<li><a href="list.jsp">List User</a></li>
						</ul>					
					</li>
				</ul>
			</li>
			 -->
			<li><a href="../scale.jsp">รวมตามขนาด</a></li>
			<li><a href="../OPECReport.jsp">รวม สพป.</a></li>
			<li class="dir"><a href="../OPECReport.jsp">รวมตาม อำเภอ</a>
					<ul>
						<li><a href="../reportByDistrict.jsp?districtId=1">อ.เมือง</a></li>
						<li><a href="../reportByDistrict.jsp?districtId=2">นิคม</a></li>
						<li><a href="../reportByDistrict.jsp?districtId=3">ดอนตาล</a></li>
						<li><a href="../reportByDistrict.jsp?districtId=4">ดงหลวง</a></li>
						<li><a href="../reportByDistrict.jsp?districtId=5">คำชะอี</a></li>
						<li><a href="../reportByDistrict.jsp?districtId=6">หว้านใหญ่</a></li>
						<li><a href="../reportByDistrict.jsp?districtId=7">หนองสูง</a></li>
					</ul>
			</li>
			<li><a href="<%=request.getContextPath()+"/LoginController/logout"%>">ออกจากระบบ</a>
			</li>
		</ul>
		</div>        	
        	</td>
        </tr>
        </table>        
		<!-- begin menu  -->
	
        	              

		<!-- / END --> 